import request from '@/utils/request'

// 查询固定资产信息列表
export function listMtpMstr(query) {
  return request({
    url: '/money/mtpMstr/list',
    method: 'get',
    params: query
  })
}

// 查询固定资产信息详细
export function getMtpMstr(mtpId) {
  return request({
    url: '/money/mtpMstr/' + mtpId,
    method: 'get'
  })
}

// 新增固定资产信息
export function addMtpMstr(data) {
  return request({
    url: '/money/mtpMstr',
    method: 'post',
    data: data
  })
}

// 修改固定资产信息
export function updateMtpMstr(data) {
  return request({
    url: '/money/mtpMstr',
    method: 'put',
    data: data
  })
}

// 删除固定资产信息
export function delMtpMstr(mtpId) {
  return request({
    url: '/money/mtpMstr/' + mtpId,
    method: 'delete'
  })
}

// 导出固定资产信息
export function exportMtpMstr(query) {
  return request({
    url: '/money/mtpMstr/export',
    method: 'get',
    params: query
  })
}
// 导出上传模板
export function exportMtpExample() {
  return request({
    url: '/money/mtpMstr/exportMtpExample',
    method: 'get'
  })
}


//模具对应物料信息成型参数文件上传
export function importMtp(data) {
  return request({
    url: '/money/mtpMstr/importMtp',
    method: 'post',
    data:data
  })
}
